export const rules = {
  email: [
    {
      required: true,
      message: 'The email is required',
      trigger: 'blur',
    },
    {
      pattern: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
      message: 'Please enter the correct email address',
      trigger: 'blur',
    },
  ],
  password: [
    {
      required: true,
      message: 'The password is required',
      trigger: 'blur',
    },
    {
      pattern: /^[\S]{6,}$/,
      message: 'The password must contain at least 6 characters',
      trigger: 'blur',
    },
  ],
}
